package com.hkts.naturalgasauthentication.base.entity;

import com.hkts.naturalgasauthentication.common.constant.CommonConstant;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassNameHontPermission
 * @Description
 * @Author yck
 * @Date2020-12-22 11:12
 * @Version V1.0
 **/
@Table(name = "hont_permission")
@Entity
@Data
public class HontPermission {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id")
    private String id;

    private String name;


    private Boolean showAlways = true;


    private Integer level;


    private Integer type;


    private String title;


    private String path;


    private String component;


    private String icon;


    private String buttonType;


    private String parentId;


    private String description;


    private BigDecimal sortOrder;


    private Integer status = CommonConstant.STATUS_NORMAL;


    private String url;

    @Transient
    private List<HontPermission> children;

    @Transient
    private List<String> permTypes;

    @Transient
    private Boolean expand = true;

    @Transient
    private Boolean checked = false;

    @Transient
    private Boolean selected = false;
}
